<div class="m0p10">
  <h1><%= t 'listUmbrellas' %></h1>
<div class="content">
<!-- The table listing the files available for show/download -->
<table class="table table-striped">
  <thead class="th_title">
    <th><%= t 'image' %></th>
    <th><%= t 'name' %></th>
    <th><%= t 'show' %></th>
    <th><%= t 'edit' %></th>
    <th><%= t 'destroy' %></th>
  </thead>
  <tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery">
  <% @admin_umbrellas.each do |admin_umbrella| %>
  <% file = admin_umbrella.to_jq_upload %>
  <tr class="template-download fade in">
    <td class="preview">
      <a href="<%=file['url']%>" title="<%=file['name']%>" data-gallery="gallery" download="<%=file['name']%>"><img src="<%=file['thumbnail_url']%>"></a>
    </td>
    <td class="name">
      <a href="<%=file['url']%>" title="<%=file['name']%>" data-gallery="<%=file['thumbnail_url']&&'gallery'%>" download="<%=file['name']%>"><%=file['name']%></a>
    </td>
    <td><a href="<%= admin_umbrella_path(admin_umbrella) %>"><%= t 'show' %></a></td>
    <td><a href="<%= edit_admin_umbrella_path(admin_umbrella) %>"><%= t 'edit'%></a></td>
    <td><%= link_to 'Destroy', admin_umbrella, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
  </tbody>
</table>
</div>
<br>
<a href="<%= new_admin_umbrella_path %>"><%= t 'newUmbrella'%></a>
</div>

<%= render 'admin/avatar/gallery'%>

<%= javascript_include_tag "jquery-1.7.2" %>
<%= javascript_include_tag "jquery_ujs" %>
<%= javascript_include_tag "load-image.min" %>
<%= javascript_include_tag "bootstrap.min" %>
<%= javascript_include_tag "bootstrap-image-gallery.min" %>
